<%-- 
    Document   : created
    Created on : 29.10.2010, 18:09:53
    Author     : nico
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="u" uri="http://nixis.de/jsp/tags/core" %>

<p id="article-added-to-bookmarks-note">
    Article has been added to your <a href="<u:url value="/bookmark" />">bookmarks</a>.
</p>

<script type="text/javascript">
    $("#article-added-to-bookmarks-note")
        .parent(".ui-dialog-content")
        .dialog({
            title: "Bookmark added",
            autoOpen: true, 
            buttons: {
                Ok: function() {
                    $(this).dialog("close");
                }
            }
        });
        
    $(".add-bookmark-link")
        .find("span")
            .removeClass("add")
            .end()
        .unbind("click")
        .attr("href", "<u:url value="/bookmark#bookmark-${it.id}"/>");
</script>